<?php
/**
 *  View Interface
 *
 */
namespace Yz\modules\Error;
use Yz_HTTP_Response_Interface as Response;
class View_Error
    extends \Yz_View_Template
{

    protected $status = Response::STATUS_OK;

    /**  declare the NOT_FOUND error
     *
     */
    public function declareNotFound()
    {
        $this->status = Response::STATUS_NOT_FOUND;
        return $this;
    }

    /**  declare the INTERNAL_SERVER_ERROR error
     *
     */
    public function declareServerError()
    {
        $this->status = Response::STATUS_INTERNAL_SERVER_ERROR;
        return $this;
    }

    /**  declare the FORBIDDEN error
     *
     */
    public function declareForbidden()
    {
        $this->status = Response::STATUS_FORBIDDEN;
        return $this;
    }


} // class

